package com.helen.mybatis.Enum;

/**
 * @author helenlee
 * @date 2020/4/8
 */
public enum CommandTypeEnum {
    SELECTONE,
    SELECTlIST,
    INSERT,
    UPDATE,
    DELETE;


    public static CommandTypeEnum getEnumByName(String name){
        for (CommandTypeEnum commandTypeEnum : CommandTypeEnum.values()) {
            if (name.equalsIgnoreCase(commandTypeEnum.name())){
                return commandTypeEnum;
            }
        }
        return null;
    }
}
